﻿<sdk:Page 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    x:Class="LASGui.Views.Cuentas"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="Cuentas" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" 
    Style="{StaticResource PageStyle}" 
    >
	
    <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="-58,0,-75,-20">
        	<Grid Background="#FFBCBCBC" Height="522" Width="1317">
        		<Grid.RowDefinitions>
        			<RowDefinition Height="0.946*"/>
        			<RowDefinition Height="0.054*"/>
        		</Grid.RowDefinitions>
        		<Rectangle Style="{StaticResource DividerStyle}" HorizontalAlignment="Left" Margin="300,8,0,6" d:LayoutOverrides="Width" Fill="#8A080808" Grid.RowSpan="2"/>
        		<TextBlock HorizontalAlignment="Left" Height="52" Margin="48,30,0,0" TextWrapping="Wrap" Text="Cuentas" VerticalAlignment="Top" Width="154" FontSize="48" Foreground="#FF0384C5"/>
        		<Rectangle Style="{StaticResource DividerStyle}" HorizontalAlignment="Right" Margin="0,8,594,6" Fill="#8A080808" d:LayoutOverrides="Width" Grid.RowSpan="2"/>
        		<StackPanel x:Name="PanelArbol" Margin="328,30,620,0" d:LayoutOverrides="HorizontalAlignment" Grid.RowSpan="2">
        			<Border x:Name="Instruccion" BorderThickness="1" Height="45">
        				<TextBlock x:Name="ContentText4_Copy" Style="{StaticResource ContentTextStyle}" 
        					Text="Por favor seleccione una cuenta." Margin="0" Width="369" Height="44" VerticalAlignment="Top"/>
        			</Border>
        			<Grid x:Name="MenuCuentas" Height="135">
        				<StackPanel x:Name="Linea1" Height="40" VerticalAlignment="Top" Orientation="Horizontal">
        					<Border x:Name="MenuActivos" BorderThickness="1" HorizontalAlignment="Left" Width="100" Height="40" d:LayoutOverrides="VerticalAlignment, Height" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy1" Style="{StaticResource ContentTextStyle}" 
        							Text="Activos" Margin="11,3,0,0" Width="80" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="Black"/>
        					</Border>
        					<Border x:Name="Division" BorderThickness="1" Width="19">
        						<Rectangle Style="{StaticResource DividerStyle}" Margin="8,0,8,2" Fill="#8A080808" Height="32" VerticalAlignment="Bottom"/>
        					</Border>
        					<Border x:Name="MenuPasivos" BorderThickness="1" HorizontalAlignment="Left" Width="100" Height="40" d:LayoutOverrides="VerticalAlignment, Height" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy3" Style="{StaticResource ContentTextStyle}" 
        							Text="Pasivos" Margin="11,3,0,0" Width="85" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        					<Border x:Name="Division_Copy" BorderThickness="1" Width="19">
        						<Rectangle Style="{StaticResource DividerStyle}" Margin="8,0,8,2" Fill="#8A080808" Height="32" VerticalAlignment="Bottom"/>
        					</Border>
        					<Border x:Name="MenuPatrimonio" BorderThickness="1" HorizontalAlignment="Left" Width="132" Height="40" d:LayoutOverrides="VerticalAlignment" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy4" Style="{StaticResource ContentTextStyle}" 
        							Text="Patrimonio" Margin="12,3,0,0" Width="112" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        				</StackPanel>
        				<StackPanel x:Name="Linea2" Margin="30,38,14,54" Orientation="Horizontal">
        					<Border x:Name="MenuIngresos" BorderThickness="1" HorizontalAlignment="Left" Width="100" Height="40" d:LayoutOverrides="VerticalAlignment, Height" MouseLeftButtonUp="ChangeCurrentAccountDisplay" CornerRadius="20">
        						<TextBlock x:Name="ContentText4_Copy2" Style="{StaticResource ContentTextStyle}" 
        							Text="Ingresos" Margin="7,3,0,0" Width="85" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        					<Border x:Name="Division_Copy1" BorderThickness="1" Width="19" Margin="0,0,0,3">
        						<Rectangle Style="{StaticResource DividerStyle}" Margin="8,0,8,2" Fill="#8A080808" Height="32" VerticalAlignment="Bottom"/>
        					</Border>
        					<Border x:Name="MenuCostos" BorderThickness="1" HorizontalAlignment="Left" Width="86" Height="40" Margin="0,1,0,0" d:LayoutOverrides="VerticalAlignment" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy5" Style="{StaticResource ContentTextStyle}" 
        							Text="Costos" Margin="7,3,0,0" Width="72" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        					<Border x:Name="Division_Copy2" BorderThickness="1" Width="19" Margin="0,0,0,3">
        						<Rectangle Style="{StaticResource DividerStyle}" Margin="8,0,8,2" Fill="#8A080808" Height="32" VerticalAlignment="Bottom"/>
        					</Border>
        					<Border x:Name="MenuGastos" BorderThickness="1" HorizontalAlignment="Left" Width="89" Height="40" Margin="0,1,0,0" d:LayoutOverrides="VerticalAlignment" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy6" Style="{StaticResource ContentTextStyle}" 
        							Text="Gastos" Margin="7,3,0,0" Width="75" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        				</StackPanel>
        				<StackPanel x:Name="Linea3" Margin="20,0,0,15" Orientation="Horizontal" Height="43" VerticalAlignment="Bottom">
        					<Border x:Name="MenuOtrosIngresos" BorderThickness="1" HorizontalAlignment="Left" Width="165" Height="40" d:LayoutOverrides="VerticalAlignment" Margin="0,2,0,1" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy7" Style="{StaticResource ContentTextStyle}" 
        							Text="Otros Ingresos" Margin="0,3,3,0" Width="154" Height="33" VerticalAlignment="Top" FontSize="26.667" HorizontalAlignment="Right" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        					<Border x:Name="Division_Copy3" BorderThickness="1" Width="19" Margin="0,0,0,3">
        						<Rectangle Style="{StaticResource DividerStyle}" Margin="8,0,8,2" Fill="#8A080808" Height="32" VerticalAlignment="Bottom"/>
        					</Border>
        					<Border x:Name="MenuOtrosGastos" BorderThickness="1" HorizontalAlignment="Left" Width="162" Height="40" Margin="0,2,0,1" d:LayoutOverrides="VerticalAlignment" CornerRadius="20" MouseLeftButtonUp="ChangeCurrentAccountDisplay">
        						<TextBlock x:Name="ContentText4_Copy9" Style="{StaticResource ContentTextStyle}" 
        							Text="Otros Gastos" Margin="10,3,0,0" Width="146" Height="33" VerticalAlignment="Top" FontSize="26.667" Foreground="{StaticResource BodyTextColorBrush}"/>
        					</Border>
        				</StackPanel>
        			</Grid>
        			<sdk:TreeView x:Name="InputArbolCuentas" Height="289" Background="#FFA7A5A5" BorderBrush="{x:Null}" Foreground="Black" FontSize="16"/>
        		</StackPanel>
        		<sdk:TabControl x:Name="TabInformacion" HorizontalAlignment="Right" Margin="0,26,51,-3" Width="507" BorderBrush="{x:Null}" Background="#FFA7A5A5">
        			<sdk:TabItem Header="Detalle de la Cuenta    " Style="{StaticResource TabItemStyle1}" HorizontalAlignment="Left"  Margin="0,-1,0,1" FontSize="21.333" Background="{x:Null}" BorderBrush="{x:Null}">
        				<Grid Margin="0,0,-12,0" Height="457">
        					<StackPanel Width="245" Margin="24,22,257,41" d:LayoutOverrides="HorizontalAlignment">
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText10" Style="{StaticResource ContentTextStyle}" 
        								Text="Código:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="42">
        							<TextBlock x:Name="InputDetalleCodigo" Style="{StaticResource ContentTextStyle}" 
        								Text="&lt;Código&gt;" Margin="0" Width="251" Height="27" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText3_Copy7" Style="{StaticResource ContentTextStyle}" 
        								Text="Nombre:" Margin="0,4,0,3" Width="251" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBox x:Name="InputDetalleNombre" TextWrapping="Wrap" Margin="-1,-1,56,22" FontSize="16" Height="27" Width="189"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText11" Style="{StaticResource ContentTextStyle}" 
        								Text="Saldo:" Margin="0,4,0,3" Width="251" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="74">
        							<StackPanel Margin="-1,-1,14,10">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Modeda del Sistema:" Margin="0" Width="251" Height="27" d:LayoutOverrides="Height"/>
        								<TextBlock x:Name="InputDetalleSaldoSistema" Style="{StaticResource ContentTextStyle}" 
        									Text="&lt;Saldo en moneda del sist&gt;" Margin="0" Width="268" Height="27" d:LayoutOverrides="Height" FontSize="16"/>
        							</StackPanel>
        						</Border>
        						<Border BorderThickness="1" Height="74">
        							<StackPanel Margin="-1,-1,14,10">
        								<TextBlock Style="{StaticResource ContentTextStyle}" 
        									Text="Moneda Local:" Margin="0" Width="268" Height="27" d:LayoutOverrides="Height"/>
        								<TextBlock x:Name="InputDetalleSaldoLocal" Style="{StaticResource ContentTextStyle}" 
        									Text="&lt;Saldo en moneda local&gt;" Margin="0" Width="251" Height="27" d:LayoutOverrides="Height" FontSize="16"/>
        							</StackPanel>
        						</Border>
        					</StackPanel>
        					<StackPanel
        						Margin="283,22,-21,41" Width="245">
        						<Border BorderThickness="1" Height="59">
        							<TextBlock x:Name="ContentText3_Copy10" Style="{StaticResource ContentTextStyle}" Margin="-1,-1,0,7" Width="226" FontWeight="Bold"><Run Text="Nombre en idioma "/><LineBreak/><Run Text="extranjero:"/></TextBlock>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBox x:Name="InputDetalleNombreExtranjero" TextWrapping="Wrap" Margin="-1,-1,55,22" FontSize="16" Height="27"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText3" Style="{StaticResource ContentTextStyle}" 
        								Text="Tipo:" Margin="-1,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="42">
        							<TextBlock x:Name="InputDetalleTipo" Style="{StaticResource ContentTextStyle}" 
        								Text="&lt;Tipo&gt;" Margin="-1,-1,0,0" Width="182" Height="27" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText4" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda:" Margin="-1,0,0,7" Width="96" Height="27" d:LayoutOverrides="HorizontalAlignment" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="53">
        							<ComboBox x:Name="InputDetalleMoneda" Height="27" Margin="-1,-1,55,0" FontSize="16" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
        						</Border>
        					</StackPanel>
        					<Rectangle Style="{StaticResource DividerStyle}" Margin="248,22,0,106" Fill="#8A080808" HorizontalAlignment="Left" d:LayoutOverrides="Width"/>
        					<Grid Height="54" Margin="72,0,0,18" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="163">
        						<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-9,-4,-12,19" />
        						<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Guardar cambios" FontSize="24"  Margin="0,1,-3,26" Click="ChangeAccountInformation"/>
        					</Grid>
        					<Grid Height="54" Margin="0,0,68,18" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="163">
        						<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-9,-5,-12,20" />
        						<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Eliminar cuenta" FontSize="24"  Margin="14,1,-17,26" Click="EraseAccount"/>
        					</Grid>
        				</Grid>
        			</sdk:TabItem>
        			<sdk:TabItem Header="Nueva Cuenta" Style="{StaticResource TabItemStyle1}" Margin="1,-1,-1,1" FontSize="21.333" BorderBrush="{x:Null}" Background="{x:Null}">
        				<Grid Margin="0,0,-12,0" Height="457">
        					<StackPanel Width="245" Margin="24,22,257,41" d:LayoutOverrides="HorizontalAlignment">
        						<Border BorderThickness="1" Height="101" Margin="0,0,26,0">
        							<TextBlock x:Name="ContentText2" Style="{StaticResource ContentTextStyle}" 
        								Text="Por favor complete el formulario para crear una nueva cuenta." Margin="-1,-1,0,-1" Width="220"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText5" Style="{StaticResource ContentTextStyle}" 
        								Text="Futura cuenta título:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBlock x:Name="InputNuevaCuentaTitulo" Style="{StaticResource ContentTextStyle}" 
        								Text="&lt;Cuenta Título&gt;" Margin="-1,-1,0,22" Width="220" Height="27" FontSize="16"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText1" Style="{StaticResource ContentTextStyle}" 
        								Text="Código:" Margin="0,0,0,7" Width="220" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBox x:Name="InputNuevaCuentaCodigo" TextWrapping="Wrap" Margin="-1,-1,55,14" Width="189" FontSize="16" Height="27" MaxLength="15"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText3_Copy3" Style="{StaticResource ContentTextStyle}" 
        								Text="Nombre:" Margin="0,4,0,3" Width="251" Height="27" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBox x:Name="InputNuevaCuentaNombre" TextWrapping="Wrap" Margin="-1,-1,55,0" Width="189" FontSize="16" Height="27" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
        						</Border>
        					</StackPanel>
        					<StackPanel Width="245" Margin="273,22,-11,41">
        						<Border BorderThickness="1" Height="59">
        							<TextBlock x:Name="ContentText3_Copy11" Style="{StaticResource ContentTextStyle}" Margin="17,-1,0,7" Width="251" FontWeight="Bold"><Run Text="Nombre en idioma "/><LineBreak/><Run Text="extranjero:"/></TextBlock>
        						</Border>
        						<Border BorderThickness="1" Height="50">
        							<TextBox x:Name="InputNuevaCuentaNombreExtranjero" TextWrapping="Wrap" Margin="17,-1,37,0" Width="189" FontSize="16" Height="27" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
        						</Border>
        						<Border BorderThickness="1" Height="36">
        							<TextBlock x:Name="ContentText13" Style="{StaticResource ContentTextStyle}" 
        								Text="Moneda:" Margin="15,7,0,0" Width="96" Height="27" d:LayoutOverrides="HorizontalAlignment" FontWeight="Bold"/>
        						</Border>
        						<Border BorderThickness="1" Height="185">
        							<ComboBox x:Name="InputNuevaCuentaMoneda" Height="27" Margin="16,7,38,0" FontSize="16" VerticalAlignment="Top" d:LayoutOverrides="Height" Width="189"/>
        						</Border>
        						<Grid Height="39" Margin="28,0,38,0">
        							<Rectangle Fill="#FF0384C5" RadiusX="20" RadiusY="30" Margin="-19,-4,-2,4" />
        							<HyperlinkButton Style="{StaticResource ButtonStyle}" Content="Agregar cuenta" FontSize="24"  Margin="5,2,-7,10" Click="AddAccount"/>
        						</Grid>
        					</StackPanel>
        					<Rectangle Style="{StaticResource DividerStyle}" Margin="0,22,243,41" Fill="#8A080808" HorizontalAlignment="Right" d:LayoutOverrides="Width"/>
        				</Grid>
        			</sdk:TabItem>
        	
        		</sdk:TabControl>
        	</Grid>
        </ScrollViewer>
    </Grid>
</sdk:Page>
